package com.example.day03_32;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.example.day03_32.base.BaseActivity;
import com.example.day03_32.presenter.MainPresenter;
import com.example.day03_32.view.MainView;

public class MainActivity extends BaseActivity<MainPresenter> implements MainView {

    @Override
    protected MainPresenter initPresenter() {
        return new MainPresenter();
    }

    @Override
    protected void initListener() {

    }

    @Override
    protected void initData() {
        mPresenter.getData();
    }

    @Override
    protected void initView() {
        //每一个V层都需要持有P层对象,并且将自己传到P层去
        //MainPresenter mainPresenter = new MainPresenter(this);
        //showLoading();
    }

    @Override
    protected int getLayout() {
        return R.layout.activity_main;
    }

    @Override
    public void setData() {

    }
}
